import service from "@/request/request.js"
// 获取所有信息
export const GetAllCustomLoginMessageService = (pageNum, pageSize,keyword) => {
    return service({
        method: 'GET',
        url: '/admincharge/customsmessage/',
        headers: {
            'Authorization': 'Bearer'+" " + localStorage.getItem('admin_token')
        },
        params: {
            ...keyword,
            currentPage: pageNum,
            pageSize: pageSize
        }
    })
}

export const ChangeStatus = (username,val) =>{
    return service({
        method:'POST',
        url:'/admincharge/changestatus/',
        params:{
            username:username,
            status:val
        }
    })
}